package com.dog.modules.upms.feign;


import com.dog.framework.feign.core.FeignRequestInterceptor;
import com.dog.modules.upms.dto.request.UserReqDto;
import com.dog.modules.upms.dto.response.UserRespDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(
        contextId = "upms-biz-service-user-api",
        name = "upms-biz-service",
        path = "/user",
        configuration = FeignRequestInterceptor.class
      //  fallback = UserClientFallback.class
)
public interface UserClient {


    @PostMapping(value = "/add")
    UserRespDto add(@RequestBody UserReqDto userReqDto);

}
